@extends('admin.layout.layout')
@section('title','用户管理')

@section('con')
   <div class="widget-box">
	<div class="admin">
  

  	
   	<div class="row">
        <div class="col-lg-4">
            <h1 class="page-header">用户添加</h1>
        </div>
        <!-- /.col-lg-12 -->

    </div>
    <br>
    <br>
		
	 <form role="form"  style="font-size:18px; font-weight:bold;" action="{{url('/admin/user/insert')}}" method="post" enctype="multipart/form-data">
         <center><div style="width:400px;">
			 @if (count($errors) > 0)
			    <div class="alert alert-danger">
			        <ul>
			            @foreach ($errors->all() as $error)
			                <li>{{ $error }}</li>
			            @endforeach
			        </ul>
			    </div>
			@endif


		</div></center>
          
          <div class="form-group">                   
                                 
                用户名:<input name="username" style="width:300px;" value="{{old('username')}}" type="text" class="form-control">                    
            </div> 
           <div class="form-group">                     
             <br>                       
                &nbsp;&nbsp;密码:<input name="password" style="width:300px;" value="{{old('password')}}" type="password" class="form-control">                   
            </div>                    
            <div class="form-group">                   
              <br>                  
                &nbsp;&nbsp;邮箱:<input name="email" style="width:300px;" value="{{old('email')}}" type="text" class="form-control">                    
            </div>                    
            <div class="form-group">                   
              <br>                   
                手机号:<input name="phone" style="width:300px;" value="{{old('phone')}}" type="text" class="form-control">                    
            </div>                    
            <div class="form-group">                   
              <br>                  
                 头像:<input type="file" name="pic">                   
            </div>                    
                {{csrf_field()}}                
            <br>
            <button class="btn btn-primary" type="submit">添加</button> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                     
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <button class="btn btn-danger" type="reset">重置</button>                   
      </form>                        
                                                            
                                 
      </div>   
                           
</div>
@endsection